package com.admin.business.background.venusEmployeeSuspension;

import com.tiangong.framework.bo.CDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description: 员工停职记录
 * @create: 2023-10-23 14:31:53
 **/
@Mapper
public interface VenusEmployeeSuspensionDao{
    /**添加员工停职记录数据*/
    void addVenusEmployeeSuspension(CDO cdo);

    /**根据Id更新员工停职记录数据*/
    int updateVenusEmployeeSuspensionById(CDO cdo);

    /**根据Id删除员工停职记录数据*/
    int deleteVenusEmployeeSuspensionById(Long id);

    /**根据条件删除员工停职记录数据*/
    int deleteVenusEmployeeSuspension(CDO cdo);

    /**根据id获取员工停职记录数据*/
    CDO getVenusEmployeeSuspensionById(Long id);

    /**根据非空条件获取员工停职记录数据列表*/
    List<CDO> getVenusEmployeeSuspensionListPage(CDO cdo);

    /**根据混合条件获取员工停职记录数据列表*/
    List<CDO> getVenusEmployeeSuspensionListPageByCondition(CDO cdo);

    /**根据用户id获取当前员工停职*/
    List<CDO> getSuspensionList(@Param("userId") Long userId);

}
